<?php
class statusAction extends galaxyAction{
	public function update() {
		if(!$_POST) {
			$this->display();
			return;
		}
		$this->checkLogin()->checksubmit();
		$_POST['msg'] = String::msubstr($_POST['msg'], 0, 140);
		$e = gMblog::batchSend($_ENV['g']->uid, $_POST['msg']);
		if($e===true) $this->showMessage('operation_success');
		$this->showMessage('mblog_update_fail');
	}
}
?>